# lst = []
# for i in range(10):
#     lst.append(i)
# print(lst)
# # 简化
# lst = [i for i in range(10)]
# print(lst)


# # 练习
# # 创建一个列表[1 3 5 7 9]
# lst = [i for i in range(1, 10, 2)]  # 从一数到十步长为2
# print(lst)
# lst = [i for i in range(10) if i % 2 == 1]
# print(lst)
# lst = [i ** 2 for i in range(10) if i % 2 == 1]
# print(lst)

#
# # 生成50件衣服
# lst = [f"衣服{i}" for i in range(50)]
# print(lst)


# # 将列表中所有字母改为大写
# lst1 = ["alan", "tony", "kevin", "taylor"]
# lst2 = [item.upper() for item in lst1]
# print(lst2)


# s = {i for i in range(10)}
# print(s)


# # 将下面的列表改为字典，要求索引作为key，数据作为value
# lst = ["zhaobenshan", 'panchangjiang', 'gaoda', "aoteman"]
# dic = {i: lst[i] for i in range(len(lst))}
# print(dic)
